import http from '../../utils/request'

export async function getExamInfoById(examId: number) {
  return http.request({
    url: '/teacher/getExamInfoById',
    method: 'get',
    params: { examId }
  })
}

export async function getQuestionById(questionId: number) {
  return http.request({
    url: `/teacher/getQuestionById/${questionId}`,
    method: 'get',
  })
}

export async function addExamRecord(data:any) {
  return http.request({
    url: '/teacher/addExamRecord',
    method: 'post',
    data
  })
}